@extends('admin::layouts.master')
@section('content')

    <div class="card" id="app">

        <div class="card-header">订单详情</div>
            <div class="tab-container">
                <div class="card-body">

                <div class="row">

                    <div class="col-md-4">
                        <div class="panel panel-default">
                            <div class="panel-heading">用户信息</div>
                            <div class="panel-body">
                                <ul class="user-timeline user-timeline-compact">
                                    <li class="latest">
                                        <div class="user-timeline-title">用户姓名</div>
                                        <div class="user-timeline-description">{{$adress['name']}}</div>
                                    </li>
                                    <li>
                                        <div class="user-timeline-title">电话号码</div>
                                        <div class="user-timeline-description">{{$adress['tel']}}</div>
                                    </li>
                                    <li>
                                        <div class="user-timeline-title">收货地址</div>
                                        <div class="user-timeline-description">{{$adress['adress']}}</div>
                                    </li>
                                    <li>
                                        <div class="user-timeline-title">详细地址</div>
                                        <div class="user-timeline-description">{{$adress['moreadress']}}</div>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>


                    <div class="col-sm-8">
                        <div class="panel panel-default panel-table">
                            <div class="panel-heading">商品详情
                            </div>
                            <div class="panel-body">
                                <table class="table table-striped table-hover">
                                    <thead>
                                    <tr>
                                        <th style="width:37%;">商品图片</th>
                                        <th style="width:36%;">单价</th>
                                        <th>数量</th>
                                        <th class="actions">交易状态</th>
                                    </tr>
                                    </thead>
                                    <tbody>



                                    @foreach($orderlist as $v)
                                    <tr>
                                        <td class="user-avatar"> <img src="{{explode(',',$v->good->pics)[0]}}" alt="Avatar">{{$v->good->title}}</td>
                                        <td>{{$v->good->mallprice+$v->huowu->fujiaprice}}</td>
                                        <td>{{$v['num']}}</td>
                                        <td class="actions"><a href="#" class="icon">{{$v->ding->status==1?'支付成功':'尚未支付'}}</a></td>
                                    </tr>
                                    @endforeach

                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>





        </div>

                <div class="card-footer">
                        <div>
                            <h3>订单编号:</h3>
                            <h4>{{$order['orderId']}}</h4>
                        </div>
                </div>

                </div>

            </div>

    </div>
    <a   href="javascript:history.back(-1)" class="btn btn-dark" style="float: right">返回</a>

@endsection